package com.jiutong.meipengdai.http.model.services;

import com.jiutong.meipengdai.common.Constants;
import com.jiutong.meipengdai.entity.BankCardInfoRespond;
import com.jiutong.meipengdai.entity.BaseRespond;
import com.jiutong.meipengdai.entity.BindingCardRespond;
import com.jiutong.meipengdai.entity.CityListRespon;
import com.jiutong.meipengdai.entity.CityListRespond;
import com.jiutong.meipengdai.entity.EvaluateResultBean;
import com.jiutong.meipengdai.entity.HouseDetailBean;
import com.jiutong.meipengdai.entity.RepayPlanRespond;
import com.jiutong.meipengdai.entity.TinkerPatchRespond;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by suxi on 2017/8/15.
 */

public interface CommentService {

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<CityListRespon> getAreaDate(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<EvaluateResultBean> getEvaluateResult(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<RepayPlanRespond> getRepayPlan(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<HouseDetailBean> getHouseDetial(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<BankCardInfoRespond> checkBankCard(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<BindingCardRespond> bankCardBinding(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<CityListRespond> getCityData(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<TinkerPatchRespond> getPatch(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<BaseRespond> pushCrash(@FieldMap Map<String, Object> fields);
}
